简体   繁体   English

在Java中保存Blob文件

[英]Resaving A Blob File In Java

I have a web application in GWT and a complementary desktop client also written in Java (so the same solution basically applies to both). 我在GWT中有一个Web应用程序,还有一个用Java编写的互补桌面客户端(因此相同的解决方案基本上适用于两者)。 In my program users can attach files, then download them later or do whatever. 在我的程序中,用户可以附加文件,以后再下载或执行任何操作。 These files are stored as blobs and can be in just about any format. 这些文件存储为Blob,并且几乎可以采用任何格式。 Many of the users that use Excel and Word want to be able to open the file, make changes, then have those changes stored back in the attached file. 许多使用Excel和Word的用户希望能够打开文件,进行更改,然后将这些更改存储回附件中。 In other words, need an inline editing of attachments. 换句话说,需要对附件进行内联编辑。

Any ideas on how to make this happen? 关于如何实现这一目标的任何想法? Should I have an 'edit' mode that keeps a file handler while the file is open, and then store that File handler? 我应该有一个“编辑”模式,在打开文件时保留文件处理程序,然后存储该文件处理程序吗? Some way keeping track of whether the file is changing, or not? 以某种方式跟踪文件是否正在更改?

Sorry about the late response. 抱歉,回复晚了。 Amol >> I have that going. 阿莫尔>>我去了。 I want to save directly back to a blob as if it were a filehandle. 我想直接保存回blob,就像它是一个文件句柄一样。 Thought that was clear in my question. 我的问题很清楚。

I have decided that this is almost impossible with a web application without writing some kind of client interface for each and every potential file type - word, excel, pdf, graphics, etc... 我已经决定,如果不为每种潜在的文件类型(word,excel,pdf,图形等)编写某种类型的客户端接口,则对于Web应用程序这几乎是不可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM