我想在 Android 中使用彩信以编程方式发送文件附件
我正在开发一个应用程序,用于使用彩信以编程方式发送加密的图像文件。我正在使用此链接中的代码 http: //androidbridge.blogspot.com/2011/03/how-to-send-mms-programmatically-in.html。
这对于常规图像和文本来说效果很好......但是当我尝试发送加密的二进制文件(使用应用程序/八位字节流的内容类型)时,接收手机似乎在传送文件时将其删除。
我正在寻找一个发送文本正文和加密图像文件的方法...有人让它工作吗?
I am working on an app to programmatically send an encrypted image file using MMS. I am using the code in this link, http://androidbridge.blogspot.com/2011/03/how-to-send-mms-programmatically-in.html.
This works fine for regular images and text...but when I try sending an encrypted binary file (using the content type of application/octet-stream the receiving phone seems to strip out the file when it's delivered.
I'm looking for a way to send a text body along with an encrypted image file...has anyone gotten this to work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想这取决于你的图像文件是如何加密的。如果您很有创意,您可以尝试保留图片标题并加密图像的实际主体。我不确定这是否会加密您需要/希望加密的所有内容,但可能值得一试。
否则,您可能需要使用其他文件共享方法。它们会很痛苦,并且无法真正实现与使用彩信相同的简单性,但同样,它可能值得尝试。
I suppose it would depend how your image file was encrypted. If you were rather creative, you could try to preserve the picture header and encrypt the actual body of the image. I'm not sure if that encrypts everything you need/want it to encrypt, but it might be worth a shot.
Otherwise, you might need to go to other methods of file-sharing. They would be a pain and not really accomplish the same simplicity as using mms, but again, it might be worth trying.