export FBX + embed media

I need to export fbx with embeded textures or other dependent files

has anyone worked on that? or can anyone point me to some fbx source that I can use to add that to the fbx exporter

This is a standard feature in the 3ds max fbx exporter which I would like to replicate in Blender