[MOBY-dev] working with images

Paul Gordon gordonp at ucalgary.ca
Wed Jul 23 18:45:39 UTC 2008


Hi Andreas,

If you're using the org.biomoby.shared.data package, there is a class 
specifically for handling binary data:

http://biomoby.open-bio.org/CVS_CONTENT/moby-live/Java/docs/API/org/biomoby/shared/data/MobyDataBytes.html

Andreas Groscurth wrote:
> Hi,
>
> thanks for that - i forgot to mention i'm looking for a java solution ;-)
> but your hint of encode in Base64 made me google again and found the 
> apache.commons.codec and it works.
>
> Thanks for the hint :)
> Andreas
>
> Sebastien Carrere wrote:
>> Hi Andreas,
>>
>> In my web services (written using PlayMoby , then Perl), I use the 
>> module MIME::Base64 
>> (http://search.cpan.org/~gaas/MIME-Base64-3.07/Base64.pm).
>>
>> I just make a cat on my picture file, and encode the result in 
>> Base64, then add it to my Moby String content.
>>
>>
>> Sebastien
>>
>>
>>
>>
>>
>> Andreas Groscurth wrote:
>>> Hi,
>>>
>>> i try to figure out how to transfer images via Web Service in moby....
>>>
>>> E.g. i use the b64_encoded_jpeg. It has the children 'content' which 
>>> requires a String, so i need to somehow encode/decode the image file 
>>> so that it can be transmitted as a String  and the client can read 
>>> it as an image (which is somehow done via MobyDataBytes)...
>>>
>>> how to do that ?
>>>
>>> thanks
>>> Andreas
>>> _______________________________________________
>>> MOBY-dev mailing list
>>> MOBY-dev at lists.open-bio.org
>>> http://lists.open-bio.org/mailman/listinfo/moby-dev
>>
>> _______________________________________________
>> MOBY-dev mailing list
>> MOBY-dev at lists.open-bio.org
>> http://lists.open-bio.org/mailman/listinfo/moby-dev
>>   
>
> _______________________________________________
> MOBY-dev mailing list
> MOBY-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-dev
>
> !DSPAM:60005,4886f8b9109503161834!
>
>
>



More information about the MOBY-dev mailing list