读取文件并在数据库中上传 [英] read files and upload in database

查看:62
本文介绍了读取文件并在数据库中上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有谁能举例说明如何在java中读取文件并将这些信息上传到数据库?


谢谢

解决方案





任何人都可以提供一个如何阅读的例子java中的文件并将此信息上传到数据库?


谢谢

这是Java File IO的链接。


至于数据库问题,您将不得不下载您的驱动程序,将其放入类路径中或将其附加到您的程序,创建连接并上传。如何执行此操作取决于您要连接的数据库类型。






任何人都可以提供如何在java中读取文件并将此信息上传到数据库的示例吗?

谢谢



什么类型的文件? .txt,.pdf,.doc,.xml?


感谢您的帮助,但我需要读取java中的文件并使用Web应用程序将此信息上传到数据库

Hi

Can anyone provide an example of how to read files in java and upload this information to the database ?

Thanks

解决方案

Hi

Can anyone provide an example of how to read files in java and upload this information to the database ?

Thanks

Here is a link on Java File IO.

As for the database question, you''re going to have to download your driver, either put it in your classpath or attach it to your program, create a connection, and upload. How you do this is dependent on what type of database you are connecting to.


Hi

Can anyone provide an example of how to read files in java and upload this information to the database ?

Thanks

What type of files? .txt, .pdf, .doc, .xml?


thaks for your help, but I need to read files in java and upload this information to the database with a Web Applications


这篇关于读取文件并在数据库中上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆