[英]to upload file on oracle server directory using java and hibernate
I need to upload a .pdf file on oracle server directory(not table) using java and hibernate. 我需要使用Java和Hibernate在Oracle服务器目录(而非表)上上传.pdf文件。
Any suggestions? 有什么建议么?
Thanks. 谢谢。
Hibernate has nothing to do with your current problem, and neither will it be useful in this context. Hibernate与您当前的问题无关,在这种情况下也无济于事。 Hibernate is meant to access logical database objects like tables, views, etc. and not physical database objects like directories or files on the server.
Hibernate旨在访问逻辑数据库对象(如表,视图等),而不是物理数据库对象(如服务器上的目录或文件)。 Therefore, I am going to assume that your current requirement is to place uploaded PDF files onto a directory that is accessible by an Oracle database server process, with the database server located on a remote machine.
因此,我将假设您当前的要求是将上传的PDF文件放置在Oracle数据库服务器进程可以访问的目录上,并且数据库服务器位于远程计算机上。
In this context, you should use a file transfer protocol like FTP, SSH(SFTP), SMB, or any other suitable protocol, to transfer the uploaded file to the directory. 在这种情况下,您应该使用文件传输协议(例如FTP,SSH(SFTP),SMB或任何其他合适的协议)将上传的文件传输到目录。 There are several other related questions on this topic:
关于此主题还有其他几个相关问题:
You'll need to first choose a supported protocol (on the database server) that you wish to use, and then build a solution around that. 您首先需要选择要使用的受支持协议(在数据库服务器上),然后围绕该协议构建解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.