No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Course Queries 4 Answers
Course Queries 5 Answers
Course Queries 1 Answers
Course Queries 3 Answers
Course Queries 4 Answers
manpreet
Best Answer
2 years ago
I have to store a some data fields and a pdf.I have created two classes ,the first is a DatabaseHandler which does all my basic database stuffs and to refer to a row of the database i have created a class myHelper which creates a record/row object having each data element that i require.The problem that i am facing is that i need to store a pdf inside the database.I have done " values.put(KEY_pdf, row.get_pdf()); " and it gives me an error " cannot resolve the method put() " and as obvious reasons i have declared the type as String.In my App ,What i want is that when i add some button in my activity after inputting the required sem,year,branch values from theuser,i need the pdf to be displayed that is the reason i have created the get() method for pdf,but this logic doesnt seem to work out or am i missing something.Urgent help.Moreover any improvements suggested are highly appreciable.
myHelper.java