This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / Java和图片?
-fatbean(青年发明家:零零发);
2004-10-13
{20348}
(#1928207@0)
-
i donot know Lotus Notes but i use web service a lots. these data is encoded by base64 for sure. decodeing is very easy. but after that still need your Lotus Notes expertise.
-elecskunk(elecskunk);
2004-10-13
(#1928260@0)
-
I guess this doesn't have too much to do with Lotus Notes. It must use some standard way to represent the image.Actually, I don't know a lot about Lotus Notes, either. Lotus notes provides a set of APIs to allow developers to deal with Notes document through jAVA, but it has limitations. That's why I expert the Notes document to an XML file.
Do you know any free base64 Java API? Do you have any idea about the coversion between image file and String?
Thank you.
-fatbean(青年发明家:零零发);
2004-10-13
{371}
(#1928308@0)
-
copy the text into a file, save as test.uue, open with winzip.
-canadiantire(八卦轮胎);
2004-10-13
(#1928468@0)
-
Convert space into CR/LF if necessary.
-canadiantire(八卦轮胎);
2004-10-13
(#1928471@0)
-
I tried , but it didn't work completely .but give me some ideas. I start to feel this could be invovled with Lotus notes. I posted it on Lotus developers forum and still waiting for the reply. Thank you all.
-fatbean(青年发明家:零零发);
2004-10-14
(#1930215@0)
-
Thank you all. Just let you know the final solution.1. It is just Base64 encoded.
2. It invovles a Lotus Domino propietary image format "notesbitmap", which I cannot get the specs. But fortunately, Lotus provides a method to convert this format to GIF.
So actually, the solution is quite straightforward, get the charset from the XML file and decode it .
For some reasons, GIF is not accepted in my project, so I'm trying to convert GIF to JPEG. I would like to try Java Advanced Image API, does anyone have experience on it?
-fatbean(青年发明家:零零发);
2004-10-15
{488}
(#1931237@0)
-
if your project is web app., this is perfect situation to set a web service. so send gif in, and return jpeg back. Good luck 008.
-elecskunk(elecskunk);
2004-10-15
(#1931794@0)
-
It is a web app, but I don't think it's necessary to use web service in my case since that conversion is just the internal implementation details, no requirement of remote calling.But I'm quite interested in Web service and hope someday I can get a chance to jump into it.
-fatbean(青年发明家:零零发);
2004-10-15
{93}
(#1931985@0)