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? |