English 中文(简体)
利用文档物体创建档案?
原标题:Create file using File object?
  • 时间:2011-04-20 06:10:07
  •  标签:
  • java

如果把这一过滤目标交给服务器,那么,能否在服务器上建立同样的档案?

File fil=new File("D://Resume.doc");
最佳回答

文档物体仅指在贵处的物理档案。 如果你简单地把它传递给服务器,你就能够进行再生。

问题回答

卷宗号是档案,不同于实际档案储存本身。

如果您将其编成服务器,服务器可能能够在当地创建文档,尽管这与从客户中编成序列无关,并将与服务器上的新文件(D://resume.doc>准确无误。

不管怎样,这还是你公开的服务器上文档的当地副本,而不是客户的复印件。

To open a client s file on the server, you will either need to use a networked file system (e.g. Windows Shares/Samba) or you have the client send the contents of the file to the server. Commons FileUpload, which provides robust file upload functionality for web applications, could be useful here.

能够在那里建立同样的档案?

否,你需要把代表档案的 by带上服务器(如果是MS Word文档),以便服务器重新检索档案,即类似于上载档案。 具体内容取决于您拥有哪些服务器,以及你正在使用哪些服务器。

只要在服务器上不节省费用,否则,你就将获得档案名称冲突。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签