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.
精彩评论