15,892,927 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by kalai91 (Top 14 by date)
kalai91
5-Feb-13 5:49am
View
Thanks Pete.
kalai91
5-Feb-13 5:36am
View
It is in the database on the server. It is a SQL server database.
kalai91
12-Oct-12 5:10am
View
ha ha.. I'm Not an expert really.. But what I need urgently is that part..
kalai91
12-Oct-12 2:33am
View
Suppose I'm creating a chess game, if a player moves a coin, then how to reflect that move to the opponent(over the internet) and the vice versa??? This logic is what I exactly want. But the game is different.
kalai91
12-Oct-12 1:56am
View
hello everyone!!!
I already have an idea of how to create the game. But all the 4 players should play in the same system!!!. What I don't know is, how to take it over the Internet. that is, each player should play through their own system over the netwok... :-) I have no idea on that!
Somebody help me on it.
kalai91
12-Oct-12 1:50am
View
Deleted
rather than commenting and leaving the question unanswered, you should have not commented. You have seen this question, and you should have answered it if you know.
Disclaimer: No offense meant... :-)
kalai91
1-Sep-12 12:21pm
View
Which SDK does VS2010 support?
kalai91
1-Sep-12 12:21pm
View
Deleted
Which SDK does VS2012 Support?
kalai91
1-Sep-12 12:19pm
View
okay... thank you!
kalai91
11-May-12 5:35am
View
sorry.. i dont understand ur solution. can u brief me...
kalai91
30-Apr-12 5:19am
View
I need the code for doing it. I have no idea of how to do it.!!
kalai91
28-Mar-12 6:22am
View
Thanks for your solution. I read all those documents. But still I did not know how to insert and retrieve.
After reading those, I came to know that annotation @Lob should be used for byte array type to store image.
@Lob
private byte[] picture;
I used this method to convert image file to bytes,
public static byte[] writingImage(String fileLocation) {
byte b[] = null;
try {
FileInputStream fis=new FileInputStream(new File(fileLocation));
fis.read(b);
return b;
} catch (IOException e) {
}
return null;
}
For setting value for the above
picture
variable, i did this.,
void setPicture(byte[] picture)
{
this.picture=picture;
}
In main method,
objectname.setPicture(writingImage("c:\img\image.jpg"));
In main method I did this, and persisted it.
I dont know whether that is the right way. Also dont know how to retrieve it back.
How to do that actually??
kalai91
19-Mar-12 6:48am
View
Thank you...
kalai91
15-Mar-12 6:11am
View
thanks for ur solution. i read that article. but still im forced to do it in that way! wat shall i do??
Show More