开发者

How to convert image file to byte array using ruby

I need to pass image as byte array to .NET SOAP web service. Can anyone give me example how to convert uploaded image file to byte arr开发者_JAVA技巧ay using ruby?


If I understand your question correctly you are getting image in some format such as jpeg or png but you need array of pixels for sending to SOAP service. In this case you can use RMagick gem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜