yes it's very easy, can you post your sample code, exactly where you are facing problem? it should be something like -
SPListItem listItem=list.Items.Add();
SPListItem list1Item=list1.Items.Add();
listItem["ColumnName"]=value;
list1Item["SecondListColumnName"]=secondValue;
listItem.Update();
list1Item.Update();
that's all, please post your code if you stuck anywhere
I am not sure how you are uploading your image file, if you are using some kind of fileupload control in your webpart, then below code may help you -
if (fileUpload.HasFile)
{
string[] allowedExtensions = {".gif", ".png", ".jpeg", ".jpg"};
if (allowedExtensions.Contains(System.IO.Path.GetExtension(fileUpload.FileName).ToLower()))
{
SPFolder picFolder = list1.RootFolder;
picFolder.Files.Add(fileUpload.FileName, fileUpload.FileBytes);
}
}
Here I assumed that list1 is the picture library, and fileUpload is the ID of the asp FileUpload control, and there is only one fileupload control (for multiple controls you may just tweak the code a bit and use Request.Files and HttpPostedFiles), rest of the code will be same as previous, please let me know if your requirement is different