Willy
2/24/2006 12:45:00 PM
Your code works correctly.
I was hoping for something simpler, but this will do.
Thanx for your help.
Kind regards,
Willy.
"JeremyB" wrote:
> You could save the image locally then get the size?
>
> str filename;
> BinData bin;
> real size;
> container theImage;
> ;
> bin = new BinData();
> bin.setData(theImage);
> filename = "c:\\temp.jpg";
> bin.saveFile(filename);
> size = winapi::fileSize(filename)/1024;
>
> "Willy" wrote:
>
> > We have an image stored in a table in Axapta. (GIF, JPG etc)
> > (The field EDT is 'bitmap')
> > We want to know the size of the bitmap. (For EP, loading times for web pages)
> >
> > Any idea how to retrieve the size?
> > We tried BINDATA, without good results.
> >
> > If Image.Width() and Image.Height() are available, then were is Image.Size()?
> >
> > Any help appreciated.
> >
> >
> > Willy.