ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Slippymap/TImEnView save to database

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
sandy771 Posted - Mar 19 2013 : 10:17:54
I am trying to save a map obrtained from a map server via slippymap to a database. My code is below. My problem is that when I examine the data in the db (sqlite) I find a jpeg, not a bitmap. What am I doing wrong?

Thx.

ies = new TIESlippyMap(iesmpMapQuest, "c:\\mapcache");
TImEn2->IEBitmap->VirtualBitmapProvider = ies;
ies->Latitude = lat;
ies->Longitude = lon;
ies->Zoom = 12;
TImEn2->Update();

exif2->Edit();
picstrm = exif2->CreateBlobStream(exif2->FieldByName("map"), bmWrite);
TImEn2->IO->StreamHeaders = false;
TImEn2->IO->SaveToStreamBMP(picstrm);
2   L A T E S T    R E P L I E S    (Newest First)
sandy771 Posted - Mar 27 2013 : 04:18:38
Thanks for the reply Fabrizio

I manged to sort this last week - but I am away from my office and can't remember how :(
fab Posted - Mar 27 2013 : 04:13:22
SaveToStreamBMP does save a BMP, so the problem should be elsewhere.
How do you check the field contains a jpeg?