使用JPA将图像,pdf,视频插入oracle [英] insert images, pdf, videos into oracle using JPA

查看:71
本文介绍了使用JPA将图像,pdf,视频插入oracle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将图像,pdf,视频存储到Oracle数据库中.我需要使用JPA和JPQL来执行此操作.
JPA for Lob中有@Lob批注.但我不知道如何将它们插入表中.有人帮助我.

谢谢...

I need to store the images, pdf, videos into Oracle database. I need to use JPA and JPQL to do this.
There is @Lob annotation in JPA for Lob. but i dont know how to insert them into the table. somebody help me on it.

Thanks...

推荐答案

JPA -Java持久性API简介 [ ^ ]

JPQL-Java持久性查询语言 [ Pro JPA 2:掌握Java Persistence API(Java技术中的专家之声) [
JPA - Introduction to the Java Persistence API[^]

JPQL - The Java Persistence Query Language[^]

I strongly recommend a book for that: Pro JPA 2: Mastering the Java Persistence API (Expert''s Voice in Java Technology)[^]

and make yourself some test and evaluation project, so you can play around without any further need to be productive on that.


我还在从事一个与我完全一样的项目的东西,真的很困惑.但是我读了一些将所有图片,vedios等存储在服务器上的文件夹中并在数据库中添加该文件的链接以获得更好的性能的更好的地方.
I am also working on a project where I will be diong exactly the same stuff and really confused. But I read some where that its better to store all the pictures, vedios etc in a folder on server and add a link of that file in database to acheive good performance.


这篇关于使用JPA将图像,pdf,视频插入oracle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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