Thanks, kpower, it was really helpful. Now I can 'upload' images, but there is another problem - after I upload many items, on admin panel I can only see few of them. And their status are deleted(or smth like that).
I checked few times data on database - records are there(only in catalog_live, product_live and sitetree_live tables), ParendID is correct.
I was played with doPublish() and ->Status = 'Publish' but it doesn't helped.
My code is here: http://pastebin.com/CMjA6epG
How it looks in admin:
http://img3.imageshack.us/img3/537/adminmenu.png
What was inserted:
http://img220.imageshack.us/img220/4316/datapv.png
As you can see, I can not see products under the `Spodnie`;
In total, there is about 2500 products. If I add all of them, then I can not see products at all, even full tree up to the products.
The code doesn't look very nice, I know, but this migration i will use only once.
Any ideas? Thank you for any help.