For the magnetic field generated from a wire in which current flows, we have:
$$\vec B(\vec r)=\frac{\mu_0}{4\pi}I\int_C \frac{d\vec r'\times(\vec r - \vec r')}{|\vec r- \vec r'|^3}$$
In general tho for a continues current density, or for the magnetic field which is generated by some arbitrary object in which current flows, we have:
$$\vec B(\vec r)=\frac{\mu_0}{4\pi}\int_V \frac{\vec j(\vec r')\times(\vec r - \vec r')}{|\vec r- \vec r'|^3}dV'$$
From both equations we have the following implication:
$$I\cdot d\vec r'=\vec j(\vec r')dV$$
I tried to derive this last equation starting from the left side, but I cannot. This is where I am stuck:
$$I\cdot d\vec r'=j(\vec r') \cdot F \cdot d\vec r'=\vec j(\vec r') \cdot F \cdot dr'$$
The term $ F \cdot dr'$ is not equal to $dV'$ because while $dr'$ is infinitesimal length, $F$ is the total surface and not an infinitesimal surface. So how can I derive the right side of my 3rd equation?