简体   繁体   English

使用java和hibernate在oracle服务器目录上上传文件

[英]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.

相关问题 使用Spring MVC将文件上传到服务器目录 - File Upload to Server Directory Using Spring MVC 文件上传到服务器目录 - File upload to the server directory 如何使用Java从客户端和服务器位于不同物理系统上的csv文件上载数据到oracle中 - how to upload data into oracle from csv file where client and server are on different physical systems using java 使用Java和JSP将文件上传到服务器上的目录 - 无法获得正确的路径 - Upload file to directory on server using Java and JSP - can't get path right 使用 java 中的 Apache 共享网络库将文件上传到 ftp 服务器中的特定目录 - upload file to a specific directory in ftp server using Apache Commons Net library in java 使用Java类将文件上载到服务器 - Using Java classes to upload a file to a server 将文件上传到服务器根目录 - Upload file into Server Root directory 重新启动Wildfly服务器期间出错:“ / usr / lib / jvm / java-8-oracle / bin / java”:没有这样的文件或目录 - Error during restart wildfly server : ”/usr/lib/jvm/java-8-oracle/bin/java”: No such file or directory 使用Hibernate将Oracle Date映射到Java对象 - Mapping an Oracle Date to a Java object using Hibernate Java上传文件ftp服务器 - Java upload file ftp server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM