[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1670
  • Last Modified:

Lotus notes DXL export of image

I am converting lotus notes document library inline images to gif images using dxl logic of reading Filedata and converting it to base64 byte[] and creating a gif images. The conversion was working fine for all the sample but few days back we came across sample file with notesbitmap tag, after reading few forums it was mentioned that

"For the problem images in your DXL export, do they result in a element in the output, or a ? If the latter, I believe they are actually image references instead of actual images; the notesbitmap data is not a gif, but contains a binary header and URL in a Notes-specific format."

But where can i find the URL in notes specific because when i decode the second data it gives me garbage result instead of url.

I also tried setting the ConvertNotesBitmapToGif .net property to true before conversion.

Please find the below link for sample DXL: http://www.page-monitor.com/Downloads/Exported2.xml

Details:

xP8gAAEAAQAAAAgAAAAAAAAAAAAAAAAAU1RHNjI2NTeVACYAAAAAAAAAAAAAAAAAAAAAAAAA0wF/ AAAAAAAAAAAAAAAAAA==

is the header info i.e image name

and filedata below at the bottom should give the URL (as per the Lotus notes forum)

Any help will really be appreciated!!
0
prakashd69
Asked:
prakashd69
  • 5
  • 5
1 Solution
 
Sjef BosmanGroupware ConsultantCommented:
That's a duplicate question. Didn't you get a result in the previous one? The subject is maybe too difficult.

The results of my analysis: it is an internal reference to the file STG62657

Translate your string above back to a normal one using http://www.motobit.com/util/base64-decoder-encoder.asp
Result: ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿STG62657•¿&Ó¿¿¿¿¿¿¿¿¿¿¿¿¿
What the additional junk is? I don't know.
Elsewhere in your DXL output you'll find the $FILE object STG62657.
0
 
prakashd69Author Commented:
The Answer  mention about “an internal reference to the file STG62657”   is correct and we have tried this at starting stage  

of this issue to retrieve the image data for particular $FILE object , we have also applied different decoding methods in order to decode the image from this $FILE object but no luck as such
0
 
Sjef BosmanGroupware ConsultantCommented:
Really? Now, you must have tried to convert the STG image from base64 to binary by now, haven't you? If you haven't, please copy/paste the $FILE data in the motobit-page mentioned above, and convert to a textbox. Do you see the file signature? You can also convert to a binary file, and download that file. Open it in a hex-editor, and you'll see the signature of the file too.

The problem that remains is that there are some leading bytes, i.e. before the file signature, that I don't understand. Maybe they can just be skipped, but do so after the conversion.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
prakashd69Author Commented:
On reading more about that particular format we came across the below discussion written by someone on the same forum.


"For the problem images in your DXL export, do they result in a <gif> element in the output, or a <notesbitmap>? If the latter, I believe they are actually image references instead of actual images; the notesbitmap data is not a gif, but contains a binary header and URL in a Notes-specific format."
but how to  relate this in this case..
0
 
prakashd69Author Commented:
Is there any option to set in Domino server to save image as gif instead of notesbitmap/URL ref.

Kindly suggest,
0
 
Sjef BosmanGroupware ConsultantCommented:
No idea "how to relate"...
And no, images are saved internally as notesbitmaps. You could use the HTTP part of Domino to fetch a document as HTML; images will automatically be converted.
0
 
prakashd69Author Commented:
"For the problem images in your DXL export, do they result in a <gif> element in the output, or a <notesbitmap>? If the latter, I believe they are actually image references instead of actual images; the notesbitmap data is not a gif, but contains a binary header and URL in a Notes-specific format."
but how to  relate this in this case..

Pls analyse..I have subscribed to this forum only to get this answer...
0
 
Sjef BosmanGroupware ConsultantCommented:
I'm sorry, but we "experts" aren't paid by Experts Exchange. It is not a job, we're just volunteers, offering our services in our own free time for the greater glory of mankind (usually) and for some recognition and points. If you have a problem with your subscription, you have to take that up elsewhere.

As I said, I don't know how to analyse. I don't understand the part about the <gif> element.

I think you have all the elements by now to analyse this yourself:
- you have the bitmap information
- you know it's Base64
- you have a link to a website that allows you to decode some information
- you can find the name of the image
- you know how to find the start of a GIF image

I think I can do nothing else for you, sorry...

PS: I'm afraid you are one of the very few on this planet with this question, which means that you won't find a lot of help on other forums. If you'd ask me for the name of a forum where you could have more luck, you might try on the IBM/Lotus forum, but even there you won't get an answer.

Good luck!
0
 
prakashd69Author Commented:
Thanks for the support and guidance...Nice to hear about the working principle of Expert Exchange.. You people are Gurus..

Thanks once again and sorry for the subscription comment..apologise for the same..
0
 
Sjef BosmanGroupware ConsultantCommented:
:-) I hope you can make it work!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now