[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Willy

2/23/2006 7:56:00 AM

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.
2 Answers

JeremyB

2/24/2006 5:17:00 AM

0

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.

Willy

2/24/2006 12:45:00 PM

0

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.